package DaEr2_1;

import java.util.Scanner;

public class ShuiXianHua {
    public static void main(String[] args) {
        //Scanner scanner = new Scanner(System.in);
//        System.out.println("输入三位数");
      //  int i = scanner.nextInt();
        for (int i=0;i<999;i++) {
            int i1=i/100;
            int i2=i%100/10;
            int i3=i%10;
            //boolean flag = true;
            if (i == i1 * i1 * i1 + i2 * i2 * i2 + i3 * i3 * i3) {
                System.out.println("i = " + i);
            }
            }

        }
    }

